﻿namespace KinonekoSoftware.Studio.Bus
{
    [AttributeUsage(AttributeTargets.Method)]
    public sealed class MessageHandlerAttribute : Attribute
    {
        public MessageHandlerAttribute(Type message)
        {
            MessageType = message ?? throw new ArgumentNullException(nameof(message));
        }
        
        public Type MessageType { get; }
    }


    [AttributeUsage(AttributeTargets.Method, AllowMultiple = true)]
    public sealed class FeatureHandlerAttribute : Attribute
    {
        public FeatureHandlerAttribute(Type _)
        {
        }
    }
}